// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '物料群组',
        name: 'sly_material_groupmodel',
        url: "/sly_material_groupmodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Material_Code":"","Material_Name":"","Material_Type":"","Default_ProcessId":"","Material_Description":""};
    const editFormOptions = [[{"title":"编码","required":true,"field":"Material_Code","type":"text"},
                               {"title":"名称","required":true,"field":"Material_Name","type":"text"}],
                              [{"dataKey":"物料类型","data":[],"title":"类型","required":true,"field":"Material_Type","type":"select"},
                               {"dataKey":"新工艺字典","data":[],"title":"默认工艺","field":"Default_ProcessId","type":"select"}],
                              [{"title":"描述","required":true,"field":"Material_Description","type":"textarea"}]];
    const searchFormFields = {"Material_Code":"","Material_Name":"","Default_ProcessId":""};
    const searchFormOptions = [[{"title":"编码","field":"Material_Code","type":"="},{"title":"名称","field":"Material_Name","type":"like"},{"dataKey":"新工艺字典","data":[],"title":"默认工艺","field":"Default_ProcessId","type":"="}]];
    const columns = [{field:'Id',title:'编号',type:'bigint',sort:true,width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateUserId',title:'创建人ID',type:'bigint',width:110,hidden:true,require:true,align:'left'},
                       {field:'UpdateUserId',title:'更新人ID',type:'bigint',width:110,hidden:true,require:true,align:'left'},
                       {field:'CreatedUserName',title:'创建人',type:'string',width:110,align:'left'},
                       {field:'UpdatedUserName',title:'更新人',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left'},
                       {field:'IsDelete',title:'是否删除',type:'sbyte',width:110,require:true,align:'left'},
                       {field:'RedundancyColumn1',title:'RedundancyColumn1',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn2',title:'RedundancyColumn2',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn3',title:'RedundancyColumn3',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn4',title:'RedundancyColumn4',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn5',title:'RedundancyColumn5',type:'string',width:120,hidden:true,align:'left'},
                       {field:'Material_Code',title:'编码',type:'string',width:110,require:true,align:'left'},
                       {field:'Material_Name',title:'名称',type:'string',width:120,require:true,align:'left'},
                       {field:'Material_Type',title:'类型',type:'string',bind:{ key:'物料类型',data:[]},width:110,require:true,align:'left'},
                       {field:'Default_ProcessId',title:'默认工艺',type:'bigint',bind:{ key:'新工艺字典',data:[]},width:110,align:'left'},
                       {field:'Material_Description',title:'描述',type:'string',width:180,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}